package com.meepo.basic.umeng

import android.app.Activity
import com.umeng.socialize.media.UMImage
import java.io.Serializable

data class ShareContent(val title: String, val desc: String, val url: String, private val iconPath: Any) : Serializable {

    fun icon(activity: Activity): UMImage? {
        if (this.iconPath is String) {
            return UMImage(activity, this.iconPath)
        } else if (this.iconPath is Int) {
            return UMImage(activity, this.iconPath)
        }

        return null
    }
}